const User = require('../dao/models/User')
const { Op } = require('sequelize'); //导入sequelize的Op查询方法

exports.getUser = async(params) => {
    const select = {}
    const result = await User.findAll(select).catch((error) => {})
    const newResult = []
    for (const index in result) {
        newResult.push(result[index].toJSON())
    }
    console.log(newResult)
    return newResult
}